﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report_UpLoad.aspx.cs"
    Inherits="EcSalseManage.EcSalse.Report_UpLoad" %>

<%@ Register Src="../PageCommon/Report_Tab.ascx" TagName="Report_Tab" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function DataCheck() {
            if (document.all("txtProjectDesc").value.length == 0) {
                alert("请选择文件路径！");
                document.all['txtProjectDesc'].focus();
                return false;
            }
            return true;
        }
        function GetUploadFileName(obj) {
            var pos = obj.value.lastIndexOf('\\');
            if (pos > 0) {
                document.getElementById('txtProjectDesc').value = obj.value.substring(pos + 1);
            }
           
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" valign="top" background="../images/mail_leftbg.gif">
                <img src="../images/left-top-right.gif" width="17" height="29" />
            </td>
            <td valign="top" background="../images/content-bg.gif">
                <uc1:Report_Tab ID="Report_Tab1" runat="server" />
            </td>
            <td width="16" valign="top" background="../images/mail_rightbg.gif">
                <img src="../images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td colspan="4" valign="top">
                            <table>
                               <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
          
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="font-size:15px;">
                                        资料名称:
                                    </td>
                                    <td align="left">
                                        <font face="宋体">
                                            <asp:TextBox ID="txtProjectDesc" runat="server" Width="384px"></asp:TextBox></font>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="font-size:15px;">
                                        上传文件:
                                    </td>
                                    <td align="left">
                                        <font face="宋体">
                                            <input id="txtFilePath" runat="server" onchange="GetUploadFileName(this)" name="UploadFile" style="font-size: 9pt; width: 388px"
                                                type="file" /></font>
                                    </td>
                                </tr>
                                
                                <tr>
                                    <td>
                                     <asp:LinkButton ID="lbtnUpLoad"  runat="server" style=" background-image:url(..../images/pic15.gif); background-repeat:no-repeat; padding-left:17px;" onclick="lbtnUpLoad_Click">上传</asp:LinkButton>
                                   
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                    
                                <tr>
                                    <td colspan="2">
                                        <asp:DataGrid ID="dgList" runat="server" AutoGenerateColumns="False" BackColor="#C0FFC0"
                                            BorderStyle="Dotted" BorderWidth="0px" CellPadding="1" CellSpacing="1" DataKeyField="Project_Report_ID"
                                            PageSize="20" Width="600px" onitemcommand="dgList_ItemCommand" 
                                            onitemdatabound="dgList_ItemDataBound">
                                            <PagerStyle Mode="NumericPages" Position="TopAndBottom" />
                                            <AlternatingItemStyle BackColor="#F0F0E8" CssClass="td" />
                                            <ItemStyle BackColor="#F8F4E4" CssClass="td" />
                                            <HeaderStyle BackColor="#D8C8A8" CssClass="ttTable" HorizontalAlign="Center" />
                                            <Columns>
                                                <asp:HyperLinkColumn DataNavigateUrlField="Project_Report_FilePath" DataTextField="Project_Report_FileDesc"
                                                    HeaderText="上传资料名称" Target="_blank"></asp:HyperLinkColumn>
                                                <asp:TemplateColumn HeaderText="删除">
                                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                        Font-Underline="False" HorizontalAlign="Center" Wrap="False" />
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="imgbtnDelete" runat="server" AlternateText="删除" BorderStyle="Dotted"
                                                            BorderWidth="0px" CommandName="Delete" ImageAlign="Middle" ImageUrl="..../images/delete.gif" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="40px" />
                                                </asp:TemplateColumn>
                                            </Columns>
                                        </asp:DataGrid>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="40" colspan="4">
                            <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td width="2%">
                            &nbsp;
                        </td>
                        <td width="51%" class="left_txt">
                            <img src="../images/icon-mail2.gif" width="16" height="11">
                            客户服务邮箱：servers@centaline.com<br>
                            <img src="../images/icon-phone.gif" width="17" height="14">
                            官方网站：http://www.centaline.com.cn/
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="bottom" background="../images/mail_leftbg.gif">
                <img src="../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td background="../images/buttom_bgs.gif">
                <img src="../images/buttom_bgs.gif" width="17" height="17">
            </td>
            <td valign="bottom" background="../images/mail_rightbg.gif">
                <img src="../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
